<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>员工列表</title>
	<style>
		tr.r1{
			background: yellow;
		}
	</style>
</head>
<body>
	<!-- [{"d_id":2,"e_age":37,"e_id":1,"e_name":"??","e_pass":"698d51a19d8a121ce581499d7b701668","e_phone":"13834807897","e_sex":1,"l_id":0,"salary":50000} -->
	<table id="employee">
		
	<tr>
		<th>部门</th>
		<th>年龄</th>
		<th>ID</th>
		<th>姓名</th>
		<th>密码</th>
		<th>电话</th>
		<th>性别</th>
		<th>领导</th>
		<th>工资</th>
		<th>编辑</th>
		<th>删除</th>
	</tr>
	<%for(var i in data){%>
	<tr class="r<%= i%2 %>">
		<td><%=data[i].d_id%></td>
		<td><%=data[i].e_age%></td>
		<td><%=data[i].e_id%></td>
		<td><%=data[i].e_name%></td>
		<td><%=data[i].e_pass%></td>
		<td><%=data[i].e_phone%></td>
		<td><%=data[i].e_sex%></td>
		<td><%=data[i].l_id%></td>
		<td><%=data[i].salary%></td>
		<td><a href="/xjr/update_for?id=<%=data[i].e_id%>">编辑员工</a></td>
		<td><a href="/xjr/delete_for?id=<%=data[i].e_id%>">删除员工</a></td>
	</tr>

	
<%}%>
	</table>
	<script>
		var tableData=<%-JSON.stringify(data)%>;
	</script>
</body>
</html>